package user

import (
	"shop_be/model"
	"shop_be/dao"
	"strconv"
	"shop_be/util"
)

func finduser() model.Msg {

	msg := model.Msg{}
	msg.Code = 0
	msg.Msg = "ok"
	return msg

}

func getAllUser() []model.User {

	u := dao.FindAllUsers()
	return u

}

func deleteUser(uid string) {

	uid2, _ := strconv.Atoi(uid)
	u := model.User{}
	u.Id = uid2
	util.Db.Delete(&u)
}
